#include "simple_vector.h"

vector::vector(vector &&v) : _sz(v._sz), _elem(v._elem)
{
    v._sz = 0;
    v._elem = nullptr;
}
vector &vector::operator=(vector &&v)
{
    delete[] _elem;
    _elem = v._elem;
    _sz = v._sz;
    v._elem = nullptr;
    v._sz = 0;
    return *this;
}